/*=============================================================================
#    The element-comm is a tentative program used to test our ideas.           
#                       Copyright (C)  bgao                                    
#
#     This program is free software; you can redistribute it and/or            
#      modify it under the terms of the GNU General Public License             
#     as published by the Free Software Foundation; either version 2           
#         of the License, or (at your option) any later version.               
#
#     This program is distributed in the hope that it will be useful,          
#    but WITHOUT ANY WARRANTY; without even the implied warranty of           
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            
#             GNU General Public License for more details.                    
#
#    You should have received a copy of the GNU General Public License        
#     along with this program; if not, write to the Free Software             
#      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,             
#                       MA  02110-1301, USA.                                  
#==============================================================================
# $Id$ 
#
# $Author$ 
#
# $Revision$ 
#
# $Date$ 
#
# Description: 
#
=============================================================================*/
#ifndef __BLINK_BIND_H__
#define __BLINK_BIND_H__


#define CONTROL_IN_TOGGLE(func)		CONTROL_BLINK_TOGGLE##func


#define SWITCH_NUM	3
#define LED_YELLOW	0x01
#define LED_GREEN	0x02
#define LED_RED		0x04

#define ON_LED_YELLOW		PORTA &= ~BIT_SET(PA0)
#define OFF_LED_YELLOW		PORTA |= BIT_SET(PA0)
#define ON_LED_GREEN		PORTA &= ~BIT_SET(PA1)
#define OFF_LED_GREEN		PORTA |= BIT_SET(PA1)
#define ON_LED_RED			PORTA &= ~BIT_SET(PA2)
#define OFF_LED_RED			PORTA |= BIT_SET(PA2)

#endif
